﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel.DataAnnotations;
using WebAppMVCTest01.Validation;

namespace WebAppMVCTest01.Models
{
	public class EFEmployee
	{
		//Test01.7.1 Key 关键字标识下方 EmployeeID 字段为主键
		[Key]
		public int EmployeeID { get; set; }

		//[Required(ErrorMessage = "Enter First Name.")]
		[FirstNameValidation]
		public string FirstName { get; set; }

		[StringLength(5, ErrorMessage = "Last Name length should be greater than 5.")]
		public string LastName { get; set; }

		public int Salary { get; set; }
	}
}